<li id="choice_staff" style="display: list-item;">
	<label>销售人员:</label>
	<span class="mod-choose-input" id="choice_staff_wrap">
		<input type="text" class="ui-input ui-combo-active" id="choice_staff_name" autocomplete="off">
		<span class="ui-icon-ellipsis"  onclick="choice_staff()"></span>
	</span>
</li>
<input type="hidden" id="staff_id" value="" autocomplete="off" readonly="">
<script type="text/javascript">
	function choice_staff() {
		layer.open({
			type: 2,
			title: "选择销售人员",
			shadeClose: true,
			shade: 0.3,
			maxmin: false, //开启最大化最小化按钮
			area: ['600px', '510px'],
			fixed: false, //不固定
			btn: ['确定', '取消'],
			content: "/admin/basic/choose_staff.html",
			btn1: function (index, layero) {
				var body = layer.getChildFrame('body', index);
				//获取所有选中行
				var ids =  body.find("#grid").jqGrid('getGridParam','selarrrow');

				if (ids == '' || ids == null) {
					layer.msg("选择销售人员");
					return false;
				} else {
					//alert(ids);
					//return false;
					//获取商品信息
					$.get("/admin/basic/one_staff.html", { ids: ids }, function (data, state) {
						if (data.status == 1) {
							$("#choice_staff_name").val(data.info.names);
							$('#staff_id').val(data.info.ids);
						} else {
							layer.msg("获取信息失败");
						}
					})
				}
				layer.close(index);
				return false;
			},
			btn4: function (index, layero) {
				layer.close(index);
				return false;
			}
		})
	}
</script>